package com.wudi.estate.mapper.ownermanagement;

import com.wudi.estate.bean.ownermanagement.MemberType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MemberTypeMapper {
    @Select("select name from membertype where id = #{id}")
    String selectMemberById(MemberType mt) throws Exception;

    @Select("select id,name from membertype")
    List<MemberType> selectAll() throws Exception;
}
